/*
 * Copyright (c) 2017 5utrip.com. All Rights Reserved.
 */
package com.guoyu.project.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.guoyu.project.model.Province;

/**
 * 省份,数据访问类ProvinceDao
 *
 * @author: xblibo Thu Jun 22 16:51:17 CST 2017
 * @version 1.0.0
 */
@Repository
public interface ProvinceDao {

    /**
     * 保存Province实体
     *
     * @param province
     */
    public void save(Province province);

    /**
     * 更新Province实体
     *
     * @param province
     */
    public void update(Province province);

    /**
     * 删除Province实体
     *
     * @param provinceId
     */
    public void deleteById(int provinceId);

    /**
     * 根据id获取Province实体
     *
     * @param provinceId
     * @return
     */
    public Province queryById(int provinceId);

    /**
     * 根据条件获取Province记录总数
     *
     * @param params
     * @return
     */
    public int queryProvinceCount(Map<String, Object> params);

    /**
     * 根据条件获取分页查询Province记录
     *
     * @param params
     * @return
     */
    public List<Province> queryProvinces(Map<String, Object> params);

}